#include <stdio.h>
#include <time.h>
#include <conio.h>
#include <stdlib.h>
#include <Windows.h>

void gotoxy(short x, short y)
{
	COORD pos = { x, y };
	SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
void khung()
{
	int a = 62, b = 21;

	// 2 < x < 62      1 < y < 22
	for (int i = 2; i <= a; i++)
	{
		gotoxy(i, 1);
		printf("%c",205);
		gotoxy(i, 1 + b);
		printf("%c",205);
	}
	for (int i = 2; i <= b; i++)
	{
		gotoxy(2, i);
		printf("%c",186);
		gotoxy(a, i);
		printf("%c",186);
	}
	gotoxy(2,1); printf("%c",201);
	gotoxy(62,1); printf("%c",187);
	gotoxy(2,22); printf("%c",200);
	gotoxy(62,22); printf("%c",188);
}